<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="c1">123</div>
    <span class="c1">222</span>
    <p class="c1">3333</p>
    <h1 class="c1">123</h1>
    <script>
        var eles = document.getElementsByClassName('c1');// HTMLCollection集合
        console.log(eles);
    </script>
</body>
</html>